#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ([2.67])
AC_INIT(app_lib,0.2,andy.y.li@163.com)
AC_CONFIG_SRCDIR([apps/test_tree/main.c])
AC_CONFIG_HEADERS([config.h])
AM_INIT_AUTOMAKE

# Checks for programs.
AC_PROG_CXX
AC_PROG_CC
AC_PROG_MAKE_SET

AC_PROG_LIBTOOL

# Checks for libraries.

# Checks for header files.
AC_CHECK_HEADERS([arpa/inet.h fcntl.h limits.h malloc.h netdb.h netinet/in.h stdlib.h string.h strings.h sys/socket.h sys/time.h termios.h unistd.h])

# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_STDBOOL
AC_C_INLINE
AC_TYPE_PID_T

# Checks for library functions.
AC_FUNC_FORK
AC_FUNC_MALLOC
AC_FUNC_REALLOC
AC_CHECK_FUNCS([alarm bzero dup2 getcwd gethostbyname gethostname memset setenv socket sqrt strdup strspn strstr])

AC_OUTPUT(Makefile \
		  lib/Makefile \
		  lib/arithmetic/Makefile \
		  apps/Makefile \
          apps/xmltest/Makefile \
          apps/xmlRead/Makefile \
          apps/test_log/Makefile \
		  apps/test_parser/Makefile \
		  apps/test_socket/ver1/server/Makefile \
		  apps/test_socket/ver1/client/Makefile \
		  apps/test_socket/ver2/server/Makefile \
		  apps/test_socket/ver2/client/Makefile \
		  apps/test_socket/ver3/server/Makefile \
		  apps/test_socket/ver4/server/Makefile \
		  apps/test_bmp/Makefile \
		  apps/test_dir/Makefile \
          apps/test_list/Makefile \
          apps/test_magic/Makefile \
          apps/test_matrix/Makefile \
          apps/test_method/Makefile \
          apps/test_sort_sm/Makefile \
          apps/test_tree/Makefile \
		  apps/test_queue/ver1/Makefile \
		  apps/test_stack/ver0/Makefile \
		  apps/test_cmd/Makefile \
		  apps/normal/Makefile \
          apps/regex/Makefile \
          apps/getIP/Makefile \
          apps/test_reverse/Makefile \
		  )

